﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"  schema="dbo"
                   assembly="OpenSda.Agilcont.Common.Data.Entities"
                   namespace="OpenSda.Agilcont.Common.Data.Entities"
                   default-lazy="false" default-cascade="none">
  <class name="DataAccessAgenciaConfig" table="common_Data_Access_Agencia_Config">
    <id name="Identity" column="DataAccessAgenciaConfigId "  type="guid">
      <generator class="guid.comb"/>
    </id>

    <property name="Role" column="Role" type="string" length="50" />
    <property name="IsActive " column="IsActive " type="Boolean"  />
    <property name="AgenciaId " column="AgenciaId " type="Boolean" />
    <property name="DefaultEntityId" column="DefaultEntityId" type="Boolean"  />
    <property name="ModuleAccessId " column="ModuleAccessId  " type="Boolean" />
    <property name="CreationDate" column="CreationDate" type="DateTime" />

    <many-to-one name="ModuleAccessRef" column="ModuleAccessId" class="OpenSda.Agilcont.Common.Data.Entities.ModuleAccess, OpenSda.Agilcont.Common.Data.Entities" not-null="true" />

  </class>
</hibernate-mapping>